<?php
namespace miniapp\cpmin\service;

use miniapp\cpmin\model\Cpminilist;

class HomeService{
    //查询中奖列表
    public function lists(
        string $openid,
        int $page,
        int $limit
    ){
        return Cpminilist::with('mpfriends')
            ->where(['openid'=>$openid])
            ->page($page,$limit)
            ->order('create_time','desc')
            ->select();
    }
}
